using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Player : MonoBehaviour
{
    private static Player instance;
    public GameObject Ball;
    public FadeTop FadeTop;
    public Movement Movement;

    

    public static Player GetInstance()
    {
        return instance;
    }

    // Use this for initialization
    void Start()
    {
        instance = this;
        this.Ball.transform.rotation = Quaternion.Euler(ShortMemory.Instance.LastRotation);
      

    }


    public bool IsHit(Collider collider)
    {
        if (collider.gameObject == this.Ball.gameObject)
            return true;
        else
            return false;
    }




}
